package com.example.examsystem2.mapper;

import com.example.examsystem2.entity.SingleChoiceQuestions;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
@Mapper
public interface SingleChoiceQMapper {
    int add_choice_question(SingleChoiceQuestions singleChoiceQuestions);

    List<SingleChoiceQuestions> get_single_choiceQ_by_s_id(int s_id);

    int update_single_choiceQ_by_c_id(SingleChoiceQuestions singleChoiceQuestions);

    int del_single_choiceQ_by_c_id(int c_id);

    List<SingleChoiceQuestions> get_question_by_s_id_and_level(Map<String,Object> map);

    SingleChoiceQuestions get_scq_by_c_id(int scq_c_id);

    int num1();

    List<SingleChoiceQuestions> get_cq_test_by_s_id(int s_id);
}
